package com.model;

/**
 * 分页参数Bean
 */
public class PageBean {

    /** 当前页码 */
    private Integer pageNo = 1;

    /** 每页条数 */
    private Integer pageSize = 10;

    /** 总页数 */
    private Integer pageCount = 1;

    /** 总数据条数 */
    private Integer dataCount = 0;

    /** 分页开始索引 */
    private Integer pageDatasBegin;

    /** 分页结束索引 */
    private Integer pageDatasEnd;

    private String orderBy;

    private  String orderType;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        if(null != pageNo && pageNo >= 0){

            this.pageNo = pageNo;
        }
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if(null != pageSize && pageSize > 0){

            this.pageSize = pageSize;
        }
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        if (null != pageCount && pageCount > 0){

            this.pageCount = pageCount;
        }
    }

    public Integer getDataCount() {
        return dataCount;
    }

    public void setDataCount(Integer dataCount) {
        if(null != dataCount && dataCount > 0){

            this.dataCount = dataCount;
        }
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public Integer getPageDatasBegin() {
        return pageDatasBegin;
    }

    public void setPageDatasBegin(Integer pageDatasBegin) {
        this.pageDatasBegin = pageDatasBegin;
    }


    public Integer getPageDatasEnd() {
        return pageDatasEnd;
    }

    public void setPageDatasEnd(Integer pageDatasEnd) {
        this.pageDatasEnd = pageDatasEnd;
    }
}
